package com.bstek.uflo.form.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author Jacky.gao
 * @since 2013年11月5日
 */
@Entity
@Table(name="UFLO_TABLE_DEFINITION")
public class TableDefinition {
	@Id
	@Column(name="ID_")
	private long id;
	@Column(name="NAME_",length=60,nullable=false)
	private String name;
	@Column(name="MEMO_",length=120)
	private String memo;
	@Column(name="CATEGORY_ID_",length=60)
	private String categoryId;
	@Column(name="PARENT_ID_")
	private long parentId;
	@Column(name="CREATE_DATE_")
	private Date createDate;
	@Transient
	private List<TableColumn> columns;
	@Transient
	private List<TableDefinition> slaveTables;
	@Transient
	private List<Form> forms;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public long getParentId() {
		return parentId;
	}
	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	public List<TableColumn> getColumns() {
		return columns;
	}
	public void setColumns(List<TableColumn> columns) {
		this.columns = columns;
	}
	public List<TableDefinition> getSlaveTables() {
		return slaveTables;
	}
	public void setSlaveTables(List<TableDefinition> slaveTables) {
		this.slaveTables = slaveTables;
	}
	public List<Form> getForms() {
		return forms;
	}
	public void setForms(List<Form> forms) {
		this.forms = forms;
	}
}
